<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_quiz_paper_relation".
 *
 * @property string $id
 * @property string $quiz_id 测验id
 * @property string $paper_id 试卷id
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 */
class TQuizPaperRelation extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_quiz_paper_relation';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'create_time'], 'required'],
            [['create_time', 'update_time'], 'safe'],
            [['del_flag'], 'integer'],
            [['id', 'quiz_id', 'paper_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'quiz_id' => 'Quiz ID',
            'paper_id' => 'Paper ID',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
